import request from '@/utils/request'

// 查询运管备案查询列表
export function listSwRoadVeRecord(query) {
  return request({
    url: '/bt/swRoadVeRecord/list',
    method: 'get',
    params: query
  })
}

// 查询运管备案查询详细
export function getSwRoadVeRecord(id) {
  return request({
    url: '/bt/swRoadVeRecord/getInfo/' + id,
    method: 'get'
  })
}

// 新增运管备案查询
export function addSwRoadVeRecord(data) {
  return request({
    url: '/bt/swRoadVeRecord/add',
    method: 'post',
    data: data
  })
}

// 修改运管备案查询
export function updateSwRoadVeRecord(data) {
  return request({
    url: '/bt/swRoadVeRecord/edit',
    method: 'post',
    data: data
  })
}

// 删除运管备案查询
export function delSwRoadVeRecord(id) {
  return request({
    url: '/bt/swRoadVeRecord/remove/' + id,
    method: 'get'
  })
}

// 申报运管备案查询
export function declSwRoadVeRecord(id) {
  return request({
    url: '/bt/swRoadVeRecord/decl/' + id,
    method: 'get'
  })
}

// 变更申报运管备案
export function declModifySwRoadVeRecord(data) {
  return request({
    url: '/bt/swRoadVeRecord/declModify',
    method: 'post',
    data: data
  })
}

// 导出运管备案查询
export function exportSwRoadVeRecord(query) {
  return request({
    url: '/bt/swRoadVeRecord/export',
    method: 'get',
    params: query
  })
}

// 获取口岸列表
export function findPortList() {
  return request({
    url: '/bt/portCodeInfo/findList',
    method: 'get',
  })
}